import { createApp } from 'vue'
import App from './App.vue'
import router from './router'
import store from './store'
import ElementPlus from 'element-plus'
import 'element-plus/dist/index.css'
import request from './utils/requests' // 导入配置好的axios实例

const app = createApp(App)

// 使用插件
app.use(store)
app.use(router)
app.use(ElementPlus)

// 挂载axios实例到全局
app.config.globalProperties.$http = request

// 挂载应用
app.mount('#app')